package cn.hdustea.shopNavigation.widget.scanner;

import android.content.Context;
import android.util.AttributeSet;


import androidx.core.content.ContextCompat;

import cn.hdustea.shopNavigation.R;
import me.dm7.barcodescanner.core.ViewFinderView;

/**
 * Created by HuQiang on 2017/11/23.
 */

public class ShopViewFinderView extends ViewFinderView {
    public ShopViewFinderView(Context context) {
        this(context, null);
    }

    public ShopViewFinderView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        mSquareViewFinder = true;
        mBorderPaint.setColor(ContextCompat.getColor(getContext(), R.color.colorPrimary));
        mLaserPaint.setColor(ContextCompat.getColor(getContext(), R.color.colorPrimary));
    }
}
